const mongoose = require("../db");
const schema = new mongoose.Schema({
  // roleId: String,
  roleName: String,
  roleKey: String,
  roleMenuArr: { type: Array, default: [] },
  // roleMenuArr: [{ type: mongoose.Schema.Types.ObjectId, ref: 'Menu' }],
  sortNum:{ type: Number, default: 1 },
  status: { type: Number, default: 1 }, // 1启用 0禁用
});



module.exports = mongoose.model("Role", schema);
